package com.huayue.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.huayue.dao.BaseDao;
import com.huayue.dao.SupplierDao;
import com.huayue.entity.Supplier;

/**
 * 部门
 * 
 */
@Service
public class SupplierService extends BaseService<Supplier> {

    @Autowired
    SupplierDao supplierDao;

    @Override
    public BaseDao<Supplier> getDao() {
        return supplierDao;
    }

    public List<Map<String, Object>> findSupplier(String id, String begin, String end) {
        return supplierDao.findSupplier(id, begin, end);
    }

    public List<Map<String, Object>> find(String id, String begin, String end) {
        return supplierDao.find(id, begin, end);
    }

    public int update(String id, String begin, String end) {
        return supplierDao.update(id, begin, end);
    }
}
